package it.avantsoft.ls.peer.command;

import it.avantsoft.ls.peer.PeerHandler;

public class NewNieceABCommand extends PeerCommand {

    private String id;

    public NewNieceABCommand(PeerHandler peerHandler, String id) {
        super(peerHandler);
        this.id = id;
    }

    public void execute() {
        getPeer().addAllowedPeer(id);
    }


    public String toString() {
        return "NewNieceABCommand{" +
                "id='" + id + '\'' +
                '}';
    }
}
